AddIcon directive


Purpose

Tells httpd what kind of an icon to show for a given filetype in a directory index.


Syntax

AddIcon icon name1 name2...

icon is a virtual path to an image file which should be shown for files which match the pattern of names.

name is either a file extension (like .htm), a partial filename, or a complete physical pathname.

You may use as many AddIcon directives as you wish.

Default

There are no default icons.


Example

AddIcon /icons/image.xbm .gif .jpg .xbm

When httpd is indexing and finds a file with the extension .gif, .jpg, or .xbm, it will reference /icons/image.xbm as an image to show next to the filename.

AddIcon /icons/dir.xbm ^^DIRECTORY^^

If a given directory entry is in fact a subdirectory, /icons/dir.xbm will be referenced as an image for that index entry.

A directory listing for a given directory would then probably look something like this:

my_subdirectory
foo.gif (89000 bytes)
Return to Resource Configuration File Overview


Robert B. Denny <rdenny@netcom.com>